package ssm.model;

import org.apache.ibatis.annotations.Param;
import ssm.dao.Track;
import ssm.dao.TrackCar;
import ssm.dao.TrackPerception;
import ssm.dao.YktBusiness;

import java.util.List;
import java.util.Map;

public interface TrackMapper {
    List<Track> get();


    List<Track> getByTime(String starttime,String endtime,int pageStart,int pageEnd);


    List<Track> getByTimeOrJid(Map<String,Object> map);

    List<Map<String,Object>> getByTable(Map<String,Object>map);

    //List<Track> getByTimeOrCamerId(String camerId, String bigTime, String smallTime);


    Long getTotal(Map<String, Object> map);

    List<YktBusiness> getBussines_limt(Map<String, Object> map);
    Long getBussines_total(Map<String, Object> map);

    String getxm(String kh);

    Integer getRylx(String kh);

    String finMaxTime();

    List<Track> findTrack(String jid, String starttime, String endtime);


    List<Track> getResult_bs(Map<String, Object> param);

    int getTotal_bs(Map<String, Object> param);

    int getNumByTeacher(String startTime,String endTime);

    int getNumByStudent(String startTime, String endTime);

    List<String> getDates(String gh);



    List<Map<String,String>> getBjAndNum(Map<String,Object> param);

    List<String> getInSchoolByGh( String startTime, String endTime);

    List<String> getInschoolByXh(String startTime, String endTime);

    List<Map<String,Object>> getPFPMess(String jid, String date);

    List<YktBusiness> getBusinessDetail(Map<String,Object> param);


    List<Map> getCountOnToday(String starttime,String endtime);

    List<Map> getZmsbTeacher(String date);

    List<Map> getWsjbTeacher(@Param(value = "date")String date,@Param(value = "wsjbsjbz") String wsjbsjbz);

    List<Map> getCdTeacher(@Param(value = "date") String date,@Param(value = "cdsjbz") String cdsjbz);

    int getRealTrNumByTeacher(@Param(value = "startTime")String startTime,
                              @Param(value = "endTime") String endTime,
                              @Param(value = "time")String time);

    List<String> getTeachTrackByTime(@Param("startTime") String startTime, @Param("endTime") String endTime,@Param("lx")int lx);

    List<Track> getWifi(Map<String, Object> param);

    int getWifiTotal(Map<String, Object> param);

    List<TrackPerception> getPerception(Map<String,Object>param);

    int getZmsbTeacherTotal(String date);

    int getCdTeacherTotal(@Param("date") String date, @Param("cdsjbz") String cdsjbz);

    int getWsjbTeacherTotal(@Param("date") String date, @Param("wsjbsjbz") String wsjbsjbz);
}
